package dpll.ast;

import dpll.fnc.IVisitor;

public class NodoLiteral extends ASTNode {

	private String valor;
	
	public NodoLiteral(String valor) {
		this.valor = valor;
	}

	public String getValor() {
		return valor;
	}

	@Override
	public <T> T accept(IVisitor<T> visitor) {
		return visitor.visitLiteral(this);
	}

	@Override
	public String toString() {
		return "(LITERAL " + valor + ")";
	}

}
